#include <QtGui/QApplication>
#include <QtGui/QLabel>
#include <QtGui/QGridLayout>
int main(int argc, char* argv[])
{
   QApplication app(argc,argv);
   QWidget window;
   QGridLayout * mainLayout = new QGridLayout(&window);
   QLabel *l1 = new QLabel("First");
   QLabel *l2 = new QLabel("Second");
   QLabel *l3 = new QLabel("Third");
   QLabel *l4 = new QLabel("Fourth");
   QLabel *l5 = new QLabel("Fifth");
   QLabel *l6 = new QLabel("Sixth");
   mainLayout->addWidget(l1,0,0);
   mainLayout->addWidget(l2,0,1);
   mainLayout->addWidget(l3,1,0);
   mainLayout->addWidget(l4,1,1);
   mainLayout->addWidget(l5,2,0);
   mainLayout->addWidget(l6,2,1);
   window.show();
   return app.exec();
}